package com.lzc.controller;


import com.lzc.service.SysUserService;
import com.lzc.util.handle.JsonResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/user")
public class UserController {
    @Autowired
    private SysUserService sysUserService;

    @GetMapping("/findOneById")
    public JsonResp findOneById(Long id) {
        return JsonResp.ok(sysUserService.selectById(id));
    }

    @GetMapping("/findPage")
    public JsonResp findPage() {
        return sysUserService.findPage();
    }

}
